const express = require("express");
const upload = require("../config/upload");
const {setImg,getImg,delImg,upImg} = require('../controller/banans')
const router = express.Router()
//添加轮播图数据
router.post('/api/upload',setImg)
//得到轮播图数据
router.get('/api/getimg',getImg)
//删除轮播图数据
router.post('api/delimg',delImg)
//修改轮播图数据
router.post('api/update',upImg)
module.exports = router